package com.heima.admin.controller.v1;


import com.heima.admin.service.AdminWeMediaCheckService;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/news")
public class AdminWeMediaCheckController {
    @Autowired
    private AdminWeMediaCheckService adminWeMediaCheckService;


    @PostMapping("/list_vo")
    public ResponseResult selectWmNews(@RequestBody NewsAuthDto dto) {
        return adminWeMediaCheckService.selectWmNews(dto);
    }


    @GetMapping("/one_vo/{newsId}")
    public ResponseResult selectWmNewsById(@PathVariable Integer newsId) {
        return adminWeMediaCheckService.selectWmNewsById(newsId);
    }



}
